﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Asp.net_本质论
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Uri url = new Uri("http://www.baidu.com?action=search");
            Response.Write(url.Scheme + "</br>");
            Response.Write(url.Port + "</br>");
            Response.Write(url.Host + "</br>");
            Response.Write(url.Query + "</br>");
            Response.Write(url.AbsolutePath + "</br>");

        }
    }
}
